
#include "printall.h"

void printall(list_head head) {
    struct m_day_node *p;
    for (p = head->next; p != NULL; p = p->next) {
        wprintf(L"id: %d\n", p->data.number);
        wprintf(L"开始时间: %d年%d月%d日%d时%d分\n", p->data.start_date.year, p->data.start_date.month, p->data.start_date.day,
                p->data.start_date.hour, p->data.start_date.minute);
        wprintf(L"结束时间: %d年%d月%d日%d时%d分\n", p->data.due_date.year, p->data.due_date.month, p->data.due_date.day,
                p->data.due_date.hour, p->data.due_date.minute);
        wprintf(L"事件内容： ");
        wprintf(L"%ls\n", p->data.todo);

    }
}